package com.se.Doeii;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {
public static void main(String[]args) {
	//1.加载 spring.xml 配置文件
	ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");
	//2.通过 id 值获取对象
	Student stu = (Student) applicationContext.getBean("stu");
	System.out.println(stu);
	
}
}
